<?php
class svc
{
    function HELLO($name)
    {
        return "Hello $name!";
        //return array('name'=>"Hello $name!", 'id'=>100);
    }
}

function main()
{
    $server=new SoapServer("./server.wsdl");
    //$server=new SoapServer(null, array('uri'=>'http://sample/soap'));
    $server->setClass("svc");
    $server->handle();
}

main();
?>
